﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WSPay.Core.DTO
{
    public class WSBPayMessageDTO
    {
        public WSBPayMessageDTO(string code,string msg)
        {
            Code = code;
            Message = msg;
        }
        /// <summary>
        /// 返回码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        ///  返回消息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 交易成功
        /// </summary>
        public static WSBPayMessageDTO Code0000 = new WSBPayMessageDTO("0000", "交易成功");

        /// <summary>
        /// 交易失败
        /// </summary>
        public static WSBPayMessageDTO Code1000 = new WSBPayMessageDTO("1000", "交易失败");

        /// <summary>
        /// 验签错误
        /// </summary>
        public static WSBPayMessageDTO Code1001 = new WSBPayMessageDTO("1001", "验签错误");

        /// <summary>
        /// 重复订单
        /// </summary>
        public static WSBPayMessageDTO Code1003 = new WSBPayMessageDTO("1003", "重复订单");

        /// <summary>
        /// 订单超时
        /// </summary>
        public static WSBPayMessageDTO Code1004 = new WSBPayMessageDTO("1004", "订单超时");

        /// <summary>
        /// 付款方无效
        /// </summary>
        public static WSBPayMessageDTO Code1005 = new WSBPayMessageDTO("1005", "付款方无效");

        /// <summary>
        /// 收款方无效
        /// </summary>
        public static WSBPayMessageDTO Code1006 = new WSBPayMessageDTO("1006", "收款方无效");

        /// <summary>
        /// 收款方不是系统账户
        /// </summary>
        public static WSBPayMessageDTO Code1007 = new WSBPayMessageDTO("1007", "收款方不是系统账户");

        /// <summary>
        /// 付款方余额不足
        /// </summary>
        public static WSBPayMessageDTO Code1020 = new WSBPayMessageDTO("1002", "付款方余额不足");

        /// <summary>
        /// 支付金额必须大于0
        /// </summary>
        public static WSBPayMessageDTO Code1021 = new WSBPayMessageDTO("1021", "支付金额必须大于0");


    }
}
